import request from '@/utils/request'

/* 账单列表 */
export function billList(data) {
	return request({
	  url: `/wechat/bill/un-pay-list`,
	  method: 'get',
	  data,
	})
}

/* 创建支付订单 */
export function billPay(data) {
	return request({
	  url: `/wechat/bill/pay`,
	  method: 'post',
	  data,
	})
}

/**
 * 获取预警或逾期账单列表
 * @param {*} type 1:预警, 2逾期
 * @returns 
 */
export function billAlertList(type) {
	return request({
	  url: `/wechat/bill/bill-alerts`,
	  method: 'get',
	  params: { type },
	})
}